package test;

import java.net.URLEncoder;

public class A4 {
//	public final static String APP_KEY = "12226342";
//	public final static String APP_SERCET = "sandbox63700dc2e68b3af4f061f57af";
	
	public final static String APP_KEY = "12277545";
	public final static String APP_SERCET = "sandbox4b9089895943bd89cad10154e";

	private static final String ONLINE_CONTAINER = "http://container.open.taobao.com/container?appkey=";
	static public String getSessionKey(String appkey, String uid,String pwd)
	{
		try {
			//String url = "http://member1.taobao.com/member/mini_login.htm?login_type=3&redirect_url=";
			String url = "http://gw.api.tbsandbox.com/router/rest?login_type=3&redirect_url=";
			String fullUrl = url + URLEncoder.encode(ONLINE_CONTAINER + appkey, "utf-8");
			System.out.println("fullUrl="+fullUrl);
		} catch( Throwable ex)
		{
			//throw HookedException.toRuntimeException(ex);
			ex.printStackTrace();
		}
		return null;
	}
	static public void main(String args[])
	{
		getSessionKey("APP_KEY","caoyuwu","cyw65813");
	}
}
